import request from "@/utils/request";
const BASE_URL = "/design/schemes/instrument/string";

export function queryList(query) {
  return request({
    url: BASE_URL,
    method: "get",
    params: query,
  });
}

export function createOne(data) {
  return request({
    url: BASE_URL,
    method: "post",
    data: data,
  });
}

export function updateOne(data) {
  return request({
    url: BASE_URL,
    method: "put",
    data: data,
  });
}

export function deleteOne(id) {
  return request({
    url: BASE_URL + "/" + id,
    method: "delete",
  });
}

export default {
  queryList,
  createOne,
  updateOne,
  deleteOne
}